package com.csnf.service.impl;

import com.csnf.mapper.StorageMapper;
import com.csnf.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StorageSericeImpl implements StorageService {

    @Autowired
    StorageMapper storageMapper;

    //减库存
    @Override
    public int reduceStorage(String productCode, Integer count) {
        return storageMapper.reduceStorage(productCode, count);
    }
}
